import request from '@/utils/request'


//增加咨询栏目
export function createChannel(data) {
  return request({
    url: '/nms/nmsChannel/save',
    method: 'post',
    data: data
  })
}

//根据ID删除咨询栏目
export function deleteChannel(id) {
  return request({
    url:'/nms/nmsChannel/delete/'+ id,
    method:'get',
  })
}
//修改咨询栏目
export function updateChannel(id, data) {
  return request({
    url: '/nms/nmsChannel/update/' + id,
    method: 'post',
    data: data
  })
}
//根据ID获取咨询栏目信息
export function selectChannel(id) {
  return request({
    url: '/nms/nmsChannel/findById/' + id,
    method: 'get',
  })
}
//获取咨询栏目树
export function getChannelTree() {
  return request({
    url: '/nms/nmsChannel/getChannelTree',
    method: 'get'
  })
}

//查询全部咨询栏目
export function findAll() {
  return request({
    url: '/nms/nmsChannel/findAll',
    method: 'get'
  })
}



